package com.codingke.codingkeplayer.utils;

import android.content.Context;
import android.view.View;
import android.view.inputmethod.InputMethodManager;

import com.codingke.codingkeplayer.CodingkePlayerApp;

/**
 * Created by mingtian on 16-3-18.
 */
public class AppUtils {

    //隐藏输入法
    public static void hideInputMethod(View view){
        InputMethodManager imm = (InputMethodManager) CodingkePlayerApp.context.getSystemService(Context.INPUT_METHOD_SERVICE);
        if (imm.isActive()){
            imm.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
        }
    }
}
